import type { RouteRecordRaw } from 'vue-router';
import { ShieldCheck } from "@vben/icons"

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: ShieldCheck,
      keepAlive: true,
      title: '认证管理',
      order:2
    },
    name: 'Certificate',
    path: '/certificate',
    children: [
      {
        meta: {
          title: '认证信息管理',
        },
        name: 'List',
        path: 'list',
        component: () => import('#/views/certificate/list.vue'),
      },
      {
        meta: {
          title: '证书模板管理',
        },
        name: 'Template',
        path: 'template',
        component: () => import('#/views/certificate/template.vue'),
      },
      {
        meta: {
          title: '证书管理',
        },
        name: 'certificatesMgr',
        path: '/certificate/certificatesMgr',
        component: () => import('#/views/certificate/certificatesMgr.vue'),
      },
      {
        meta: {
          title: '白名单管理',
        },
        name: 'WhiteLink',
        path: 'white-link',
        component: () => import('#/views/certificate/white-link.vue'),
      },
      {
        meta: {
          title: '分组管理',
        },
        name: 'OrganizationalMgr',
        path: '/system/orgMgr',
        component: () => import('#/views/system/orgMgr.vue'),
      },
      {
        meta: {
          title: '学员管理',
        },
        name: 'Student Management',
        path: 'student-mgr',
        component: () => import('#/views/certificate/studentMgr.vue'),
      }
    ],
  },
];

export default routes;
